# @Time    :2025/4/11 11:00
import array


class Array:
    def __init__(self):
        """初始化数组"""
        self.size = 0
        self.capacity = 8
        self.item = [0] * 8  # 用于存储数据(元素)的list

    def __str__(self):
        arr_str = "["  # 初始化一个数组存储元素
        # 遍历 数组里大小的元素
        for i in range(self.size):
            arr_str += str(self.item[i])
            if i != self.size - 1:
                arr_str += ","
        arr_str += "]"
        return arr_str
